﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _03桥接模式
{
    public abstract class Shape
    {
        //形状内部包含了另一个维度：color
        protected IColor color;
        public void SetColor(IColor color)
        {
            this.color = color;
        }
        //设置形状
        public abstract void Draw();
    }
}
